
 
 B u t t o n   1   L a b e l   _ R U N 
 
 B u t t o n   2   L a b e l   _ S T O P 
 
 B u t t o n   3   L a b e l   _ P A U S E 
 
 
 
 B u t t o n   5   L a b e l   C O N T I N U E 
 
 B u t t o n   6   L a b e l   S T E P 
 
 
 
 B u t t o n   8   L a b e l     T u r n   t h e   L E D   O N 
 
 B u t t o n   9   L a b e l     T U R N   L E D   O F F 
 
 B u t t o n   1 0   L a b e l   T u r n   t h e   L E D     t o   R E D 
 
 B u t t o n   1 1   L a b e l   T U R N   L E D     C O L O U R   B L A C K 
 
 
 
 B u t t o n   1 3   L a b e l   E n a b l e B u t t o n 1 
 
 B u t t o n   1 4   L a b e l   D i s a b l e B u t t o n 1 
 
 
 
 V a r i a b l e   N u m e r i c   S l o t _ C o m m a n d s T o B l o c k l y   =   1 
 
 
 
 S t o p 
 
 
 
 '   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 '     S E N D   C O M M A N D   ( d e f a u l t   t i m e o u t   =   0 . 5   S e c ) 
 
 '   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 L a b e l   S e n d C o m m a n d 
 
 	 V a r i a b l e   N u m e r i c   S C 1               ' < - -   P a r a m e t e r   D e s t i n a t . - S l o t 
 
 	 V a r i a b l e   S t r i n g     S C 2               ' < - -   P a r a m e t e r   C o m m a n d - S t r i n g 
 
 	 V a r i a b l e   N u m e r i c   S C 3   =   0 . 5   ' < - -   T h e   t i m e o u t   i n   s e c o n d s 
 
 	 V a r i a b l e   N u m e r i c   S C 4 
 
 	 S l o t T e x t   S C 1   =   S C 2 
 
 	 F o r   S C 4   =   0 . 1   T o   S C 3   S t e p   0 . 1 
 
 	 	 I f   S l o t T e x t ( S C 1 )   =   " " 
 
 	 	 	 E x i t 
 
 	 	 E n d I f 
 
 	 	 W a i t   S e c o n d s   0 . 1 
 
 	 N e x t 
 
 R e t u r n 
 
 
 
 '   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 '     C O M M A N D S   T O   G P S 
 
 '   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 L a b e l   _ R U N 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o B l o c k l y ) ( " R u n " ) 
 
 R e t u r n 
 
 L a b e l   _ S T O P 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o B l o c k l y ) ( " S t o p " ) 
 
 R e t u r n 
 
 L a b e l   _ P A U S E 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o B l o c k l y ) ( " P a u s e " ) 
 
 R e t u r n 
 
 L a b e l   S T E P 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o B l o c k l y ) ( " S T E P " ) 
 
 R e t u r n 
 
 L a b e l   C O N T I N U E 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o B l o c k l y ) ( " C O N T I N U E " ) 
 
 R e t u r n 
 
 
 
 L a b e l   T u r n   t h e   L E D   O N 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o B l o c k l y ) ( T u r n   t h e   L E D   O N ) 
 
 R e t u r n 
 
 
 
 L a b e l   T U R N   L E D   O F F 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o B l o c k l y ) ( T U R N   L E D   O F F ) 
 
 R e t u r n 
 
 
 
 L a b e l   T u r n   t h e   L E D     t o   R E D 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o B l o c k l y ) ( T u r n   t h e   L E D     t o   R E D ) 
 
 R e t u r n 
 
 
 
 L a b e l   T U R N   L E D     C O L O U R   B L A C K 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o B l o c k l y ) ( T U R N   L E D   C O L O U R   B L A C K ) 
 
 R e t u r n 
 
 
 
 L a b e l   E n a b l e B u t t o n 1 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o B l o c k l y ) ( E n a b l e B u t t o n   1 ) 
 
 R e t u r n 
 
 L a b e l   D i s a b l e B u t t o n 1 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o B l o c k l y ) ( D i s a b l e B u t t o n   1 ) 
 
 R e t u r n 
 
 
 
 
 
 ' W A T C H   S e w T o _ S p e e d 
 
 ' E X E C   B u t t o n   5   T e x t   B u t t o n 5 
 
 